import React, { Component } from 'react';
import {
  View,
  Text,
  StyleSheet,
  Image,
  TouchableOpacity
} from 'react-native';
// import { getIndexBanner,getGoodsList } from "../../modal/server"
export default class Home extends Component {

    // 默认属性
    static defaultProps = {};

    // 属性类型
    static propTypes = {};

    // 构造
    constructor(props) {
        super(props);
        // 初始状态
        this.state = {};
    }

    componentDidMount() {

    }

    // 渲染
    render() {
        return (
            <View style={styles.container}>
                <Text>这是首页呦</Text>
                <TouchableOpacity activeOpacity={1} onPress={()=>{
                    this.props.navigation.push('Login')
                }}>
                    <Text>登录</Text>
                </TouchableOpacity>
            </View>
        );
    }

}
const styles = StyleSheet.create({
  container: {
    flex: 1,
  }
});
